#ifndef TC_UTILS_HH
#define TC_UTILS_HH

/** \file Utils.hh 
 * Declarations for various utilities.
 *
 * (c) Copyright  Semih Cemiloglu
 * All rights reserved, see COPYRIGHT file for details.
 *
 * $Id: Utils.hh 119 2006-06-21 04:57:25Z semihc $
 *
 *
 */

#include <stddef.h>
#include <string>
#include "Global.hh"


namespace TC {

//! Deduce a compile-time constant representing the number of bytes offset
//! of a structure member from the start of the structure.
#define TC_OFFSETOF(S,m) (size_t)&(((S*)0)->m)


  //! Get string description of the error number given
  std::string Errno2String(int errnum);

  //! Get C-string description of the error number given
  const char* Errno2Str(int errnum);


} // end namespace



#endif /* Include guard */
